//
//  HQNaviStartNaviOptionsModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/20.
//

#import "HQNaviStartNaviOptionsModel.h"

@implementation HQNaviStartNaviOptionsModel

- (void)startNavWithNaviCompositeManager:(AMapNaviCompositeManager *)manager {
    if (self.lat > 0 && self.lon > 0) {
        /// 导航组件配置类 since 5.2.0
        AMapNaviCompositeUserConfig *config = [[AMapNaviCompositeUserConfig alloc] init];
        /// 传入终点坐标
        [config setRoutePlanPOIType:AMapNaviRoutePlanPOITypeEnd location:[AMapNaviPoint locationWithLatitude:self.lat longitude:self.lon] name:self.name POIId:nil];
        /// 启动
        [manager presentRoutePlanViewControllerWithOptions:config];
    }
}

@end
